package com.yw.thesimpllestplayer.extractor;

import android.media.MediaFormat;

import androidx.annotation.NonNull;

/**
 * @ProjectName: TheSimpllestplayer
 * @Package: com.yw.thesimpllestplayer.extractor
 * @ClassName: AudioExtractor
 * @Description: 音频提取器
 * @Author: wei.yang
 * @CreateDate: 2021/11/2 14:24
 * @UpdateUser: 更新者：wei.yang
 * @UpdateDate: 2021/11/2 14:24
 * @UpdateRemark: 更新说明：
 * @Version: 1.0
 */
public class AudioExtractor extends BaseExtractor {
    public AudioExtractor(@NonNull String mediaPath) {
        super(mediaPath);
    }

    @Override
    public MediaFormat getFormat() {
        return getAudioFormat();
    }

    @Override
    public long getSampleFlag() {
        return getCurrentSampleFlag();
    }

    @Override
    public void setStartPos(long pos) {
        setStartDecodeSampleTime(pos);
    }
}
